package com.xxl.job.executor.mybatis.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxl.job.executor.mybatis.entity.JobUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (JobUser)表数据库访问层
 *
 * @author makejava
 * @since 2020-07-13 15:54:52
 */
public interface JobUserDao extends BaseMapper<JobUser> {
    /**
     * 批量插入
     *
     * @param jobUsers
     * @return
     */
    int insertBatch(List<JobUser> jobUsers);

    /**
     * 自定义分页查询
     * @param current
     * @param size
     * @return
     */
    List<JobUser> selectByPage(@Param("current")Integer current, @Param("size")Integer size);
}